<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript" src="./js/jquery.min.js"></script>
	<script type="text/javascript" src="./js/handlebars-v3.0.0.js"></script>

</head>
<body>
	<script type="text/x-handlebars-template" id="tbody-tr">
		{{#each this}}
			{{#each info}}
				<tr>
					<td>{{../name}}的{{this}}</td>
				</tr>
			{{/each}}
		{{/each}}
	</script>
	<table border="1">
		
	</table>
	<script type="text/javascript">
	 var houdun = [
	 		{
	 			"name" : '向强华',
	 			"info" : ["爸爸","妈妈","女朋友"]
	 		},
	 		{
	 			"name" : '李貌',
	 			"info" : ["哥哥","弟弟","好朋友"]
	 		},
	 		{
	 			"name" : '齐乐',
	 			"info" : ["鼻子","耳朵","牙齿"]
	 		}

	 	];

	 var myTpl = Handlebars.compile($('#tbody-tr').html());
	 $('table').html(myTpl(houdun));

	</script>

</body>
</html>